<?php

/**
 * KTDNews form.
 *
 * @package    s-test
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class KTDNewsForm extends BaseKTDNewsForm
{
  public function configure()
  {
      $this->setFields();
      $this->widgetSchema->setNameFormat("ktd_news[%s]");
  }
  public function setFields(){
      
  }
}
class BackendKTDNewsForm extends KTDNewsForm{
    public function setFields(){
        
        $this->setWidgets(array(
            "title" =>  new sfWidgetFormInput(array("label"=>"Titre")),
            "body"  =>  new sfWidgetFormKTDTextarea(array("label"=> "Information"))
        ));

        $this->setValidators(array(
            "title" =>  new sfValidatorString(array("required"=> true)),
            "body"  =>  new sfValidatorString(array("required"=> true))
        ));
    }
}
